package org.vdab.projects.tasks.shared;

import java.util.List;

import org.vdab.projects.tasks.shared.entities.ITask;
import org.vdab.projects.tasks.shared.entities.ITaskBook;
import org.vdab.projects.tasks.shared.entities.ITaskList;
import org.vdab.projects.tasks.shared.entities.impl.TaskList;

public interface IEntityManager {
	public abstract List<ITaskBook> getTaskBooks() throws Exception;

	public abstract void saveTaskBook(ITaskBook taskBook) throws Exception ;

	public abstract void saveTaskList(ITaskList taskList) throws Exception ;
	
	public abstract void saveTask(ITask task) throws Exception ;
	
	public abstract ITaskList getTaskListByKey(String key) throws Exception;
	
	public abstract ITaskBook CreateTaskBook() throws Exception ;

	public abstract ITaskList createTaskList(ITaskBook parrent) throws Exception ;
}
